package com.sky.mapper;

import com.sky.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * Author: 笨蛋超人不会飞
 * Date:  11:31
 */
@Mapper
public interface UserMapper {
    @Select("select * from user where openid = #{openid}")
    User findByOpenid(String openid);

    void insert(User user);
}
